//
//  FtEditInformationController.m
//  Feast
//
//  Created by 胡光健 on 2017/8/26.
//  Copyright © 2017年 mac. All rights reserved.
//

#import "FtEditInformationController.h"

@interface FtEditInformationController ()
@property (weak, nonatomic) IBOutlet UITextField *textField;

@end

@implementation FtEditInformationController

- (void)viewDidLoad {
    [super viewDidLoad];
    if (self.type == MerchantCode) {
        self.textField.placeholder = @"请输入商户编号";
    }else if (self.type == BusinessName) {
        self.textField.placeholder = @"请输入商户名";
    }else if (self.type == BusinessPeople) {
        self.textField.placeholder = @"请输入商户负责人";
    }else if (self.type == BusinessTell) {
        self.textField.placeholder = @"请输入联系电话";
    }else if (self.type == BusinessType) {
        self.textField.placeholder = @"请输入商户类型";
    }
}

- (IBAction)okBtn:(UIButton *)sender {
    if (self.textFieldStrBlock) {
        self.textFieldStrBlock(self.textField.text, self.type);
    }
    [self.navigationController popViewControllerAnimated:YES];
}
@end
